package com.strong.enum_;

import lombok.Getter;

/**
 * 邮箱域名 枚举
 *
 * @author Administrator
 * @date 2023/04/14
 */
@Getter
public enum EmailDomainEnum {
    D_163("163", new String[]{"163.com"}),
    D_QQ("qq", new String[]{"qq.com"}),
    D_SINA("sina", new String[]{"sina.com"}),
    D_SOHU("sohu", new String[]{"sohu.com"}),
    ABROAD("国外", new String[]{"hotmail.com", "msn.com", "yahoo.com", "gmail.com", "aim.com", "aol.com", "mail.com", "walla.com", "inbox.com"}),
    DOMESTIC("国内", new String[]{"126.com", "163.com", "sina.com", "21cn.com", "sohu.com", "yahoo.com.cn", "tom.com", "qq.com", "etang.com", "eyou.com", "56.com", "x.cn", "chinaren.com", "sogou.com", "citiz.com"});

    /**
     * 区域
     */
    private final String area;

    /**
     * 邮箱域名
     */
    private final String[] domain;

    /**
     * 实例化
     *
     * @param area   区域
     * @param prefix 邮箱域名
     */
    EmailDomainEnum(String area, String[] prefix) {
        this.area = area;
        this.domain = prefix;
    }
}
